package com.zbxx.service;

import com.zbxx.domain.User;
import org.springframework.ui.Model;

import java.util.List;

public interface UserService {
    //登录
    User login(String name, String password);

    //查询所有
    List<User> SelectUserAll();

    //删除用户
    int deleteUser(Long id);

    //查询修改用户
    User editUserId(Long id);

    //修改用户
    int editUser(User user);

    //添加用户
    int addUser(User user);

    //注册用户
    int reg(User user);

    //搜索
    List<User> findinfo(User name);

    //修改密码
    int UpdatePwd(User name, String password, String password2);

    int findNewCont();

    List<User> findNewsPage(int startPos, int pageSize);
}
